<section class="view-record">
    <fieldset>
        <legend>
            <?php echo Yii::t('app', 'View record') ?>
            <a class="btn-back pull-right" href="<?php echo $this->createUrl('tracking/index')?>">← <?php echo Yii::t('app', 'Back to List') ?></a>
        </legend>
        <?php
        $this->widget('bootstrap.widgets.TbDetailView', array(
            'data'=>$data,
            'attributes'=>array(
                array('name'=>'id_client', 'label'=>Yii::t('app', 'Client')),
                array('name'=>'id_tpdetail', 'label'=>Yii::t('app', 'Transporter')),
                array('name'=>'ship_date', 'label'=>Yii::t('app', 'Ship date')),
                array('name'=>'id_by_matter', 'label'=>Yii::t('app', 'Matter for task'), 'type'=>'raw'),
                array('name'=>'signature_transporter', 'label'=>Yii::t('app', 'Signature'), 'type'=>'raw'),
            ),
        ));
        ?>

    </fieldset>
    <br>
    <hr>
    <?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id'=>'horizontalForm',
        'type'=>'horizontal',
    ));?>

    <fieldset>
        <legend>
            <?php echo Yii::t('app', 'Update status Tracking') ?>
        </legend>
        <?php echo $form->dropDownListRow($model, 'status', Common::getStatusShip()) ?>
    </fieldset>
    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => Yii::t('app', 'Submit'),
            'icon' => 'plus-sign white'
        ));
        ?>
    </div>
    <?php $this->endWidget();?>
</section>